package thread.sington;

public class DCLsinglton {
  private int value;
  private static volatile DCLsinglton dcLsinglton;

  private DCLsinglton(int value) {
    this.value = value;
  }

  public static DCLsinglton getInstance(){
    if (dcLsinglton == null){
      synchronized (DCLsinglton.class){
        if (dcLsinglton == null){
          return new DCLsinglton(123);
        }
      }
    }
    return dcLsinglton;
  }


}
